home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
pluginy Firefox
/
8434
/
8434.xpi
/
chrome
/
content
/
seamonkeyCompat.js
< prev
next >
Wrap
Text File
|
2008-11-16
|
1KB
|
37 lines
if (typeof openUILinkIn == "undefined") {
function openUILinkIn(url, where, allowThirdPartyFixup, postData) {
if (!where || !url) {
return;
}
if (where == "save") {
saveURL(url, null, null, true);
return;
}
var w = getTopWin();
if (!w || where == "window") {
openDialog(getBrowserURL(), "_blank", "chrome,all,dialog=no,centerscreen", url, null, null, postData, allowThirdPartyFixup);
return;
}
var browser = w.document.getElementById("content");
var loadInBackground = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch).getBoolPref("browser.tabs.loadInBackground", "false");
switch (where) {
case "current":
browser.loadURI(url);
w.content.focus();
break;
case "tabshifted":
loadInBackground = !loadInBackground;
case "tab":
browser.addTab(url, null, null, !loadInBackground);
break;
}
}
}
if (typeof checkForMiddleClick == "undefined") {
function checkForMiddleClick() {
}
}